home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / textutl3.lha / textutils-1.3 / ChangeLog next >
Text File  |  1992-06-29  |  27KB  |  759 lines

  1. Mon Mar 16 00:15:11 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  2.  
  3.     * Version 1.3.
  4.  
  5.     * memcmp.c (memcmp): Different decl if ANSI C.
  6.  
  7.     * sort.c (numcompare, checkfp): Add parens to placate gcc2.
  8.  
  9.     * sort.c (mergefps): For -u, output the first, not last, of
  10.     the lines that compare equal.  From Mike Haertel.
  11.  
  12. Tue Mar 10 10:51:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  13.  
  14.     * tr.c: Remove initial capitals and periods from error messages.
  15.  
  16. Sun Mar  8 22:03:45 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  17.  
  18.     * sum.c (main): Add -r option for SYSV compat.
  19.  
  20. Thu Feb 27 22:26:25 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  21.  
  22.     * sort.c (compare): If -s given, leave lines in their original order.
  23.     (main): Recognize -s.
  24.     (usage): Document -s.
  25.     From Mike Haertel.
  26.  
  27. Tue Feb 18 20:29:45 1992  Randall Smith  (randy at geech.gnu.ai.mit.edu)
  28.  
  29.     * sort.c (sort): Check for complete parsing of buffer into
  30.     lines before nixing temp files.
  31.  
  32. Mon Feb 17 10:35:58 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  33.  
  34.     * sum.c (sysv_sum_file): Use %lu instead of %u to print a
  35.     long.  Not that it matters for GNU . . .    
  36.  
  37.     * tr.c (unquote, make_printable_str): Use \007 instead of ANSI \a.
  38.     (append_normal_char, append_range, append_char_class,
  39.     append_repeated_char, append_equiv_class, spec_init):
  40.     Initialize `next' field of new `struct List_element'.
  41.     From rommel@informatik.tu-muenchen.de (Kai-Uwe Rommel).
  42.  
  43. Sat Feb  8 17:16:49 1992  David J. MacKenzie  (djm at apple-gunkies.gnu.ai.mit.edu)
  44.  
  45.     * join.c (get_line): Renamed from getline to avoid GNU libc conflict.
  46.  
  47. Sun Feb  2 21:22:01 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  48.  
  49.     * Version 1.2.
  50.  
  51.     * nl.c: Support multiple files and "-" for stdin.
  52.     (main): Check for read and write errors.
  53.     (nl_file): New function.
  54.  
  55. Wed Jan 29 10:09:10 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  56.  
  57.     * tr.c (main): -t option was called -b in getopt spec.
  58.     (validate): Don't warn that set1 is longer than set2.
  59.  
  60.     * tr.c: Rename --sysv-string2-truncate to --truncate-string1.
  61.  
  62. Fri Jan 17 16:29:05 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  63.  
  64.     * nl.c: New program from bin-src.
  65.  
  66.     * nl.c (main): Use a struct linebuffer for line_buf.
  67.     (process_file): Use readline instead of fgets, to preserve NULs.
  68.     (check_section): Use memcmp instead of strncmp.
  69.     (proc_text): Print line_buf with fwrite instead of printf.
  70.  
  71.     * nl.c (main): Usage message if too many args given.  Check
  72.     for error in closing input file.  Lengths of section delimiter
  73.     strings were 1 too large.  Take separator_str into account in
  74.     length of print_no_line_fmt.
  75.     (build_print_fmt): Allocate space for print_fmt, in case
  76.     separator_str is long.
  77.     (proc_text): A blank line is one that contains nothing, not
  78.     even nonprinting characters.
  79.  
  80. Fri Jan 17 01:04:22 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  81.  
  82.     * All programs: Document `--' instead of `+' to introduce
  83.     long-named options, in usage messages.
  84.  
  85.     * sum.c (bsd_sum_file): Renamed from sum_file.
  86.     (sysv_sum_file): New function.
  87.     (main): Recognize an option to select between the algorithms.
  88.  
  89. Sun Jan  5 17:41:18 1992  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
  90.  
  91.     * pr.c (close_file, print_page): Fixed bug that had the command
  92.     yes |head |pr -t printing "yyyyyyyyyy".
  93.     * (print_page): Fixed bug that had pr -3 -a printing two too few
  94.     trailer lines per page.
  95.     * (main): Added restriction that -a and -m are incompatible.
  96.     Although the POSIX spec doesn't explicitly say they shouldn't
  97.     be used together, it says -a modifies the -column option and
  98.     that -column shouldn't be used with -m.
  99.  
  100. Thu Jan  2 15:23:59 1992  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  101.  
  102.     * nl.c: Include regex.h after, not before, sys/types.h.
  103.  
  104. Thu Jan  2 12:18:10 1992  Tom Lord  (lord at geech.gnu.ai.mit.edu)
  105.  
  106.     * sort.c (fillbuf) return bytes buffered instead of bytes read.
  107.  
  108. Fri Dec 27 22:53:36 1991  Jim Kingdon  (kingdon at geech.gnu.ai.mit.edu)
  109.  
  110.     * sort.c (LINEALLOC): New #define.
  111.     (struct lines): New field ``limit''.
  112.     (initlines): Set it from new arg ``limit''.
  113.     (sort, mergefps, checkfp): Pass new arg to initlines().
  114.     (findlines): Don't realloc past lines->limit.
  115.  
  116. Tue Dec 24 01:24:03 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  117.  
  118.     * tac.c, sort.c, csplit.c, system.h: Change POSIX ifdefs to
  119.     HAVE_UNISTD_H and _POSIX_VERSION.
  120.  
  121.     * xwrite.c: Change POSIX ifdef to HAVE_UNISTD_H.
  122.  
  123. Sat 14 Dec 1991 11:46:42  Jim Meyering  (meyering at wombat)
  124.  
  125.     * tr.c: Fixed an inaccurate comment on posix_pedantic.
  126.  
  127. Thu 12 Dec 1991 21:15:20  Jim Meyering  (meyering at hal)
  128.  
  129.     * tr.c: Changed underscores to hyphens in long option name
  130.     "sysv_string2_truncate".
  131.  
  132. Wed Dec 11 13:33:34 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  133.  
  134.     * tac.c (main): Set obscure_syntax to tell re_search to
  135.     allocate memory for the group registers.
  136.  
  137. Fri Dec  6 18:26:27 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  138.  
  139.     * tac.c, sort.c, csplit.c [POSIX]:  Use sigaction instead of
  140.     signal, which POSIX doesn't have.
  141.     * sort.c: Replace inthandler and huphandler with sighandler.
  142.     * csplit.c (main): Only handle signals if they were not being
  143.     ignored.
  144.  
  145.     * tr.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  146.  
  147. Wed Dec  4 00:47:47 1991  Jim Meyering  (meyering at wombat)
  148.  
  149.     * tr.c (unquote): Reformat code so it doesn't go beyond column 80.
  150.     * tr.c (squeeze_filter): Comment a little on why it's better
  151.     to step through the input by two.
  152.     * tr.c (set_initialize): Write a comment describing the function.
  153.     * tr.c: Eliminated the variable `portability_warnings' and replaced
  154.     references to it by references to `!posix_pedantic'.  One of the
  155.     uses of portability_warnings had been wrong.
  156.  
  157. Tue Dec  3 14:03:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  158.  
  159.     * tr.c: New program.
  160.  
  161. Sun Dec  1 15:07:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  162.  
  163.     * linebuffer.[ch] (freebuffer): New function (used by cron).
  164.  
  165. Thu Oct 17 22:30:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  166.  
  167.     * system.h, configure, Makefile.in: Don't include memory.h if
  168.     STDC_HEADERS, removing need for MEMORY_H_MISSING.
  169.  
  170. Thu 17 Oct 1991 16:53:07  Jim Meyering  (meyering at wombat)
  171.  
  172.     * pr.c (print_page): REALLY fixed `extra newline at EOF' problem.
  173.     Somehow, part of my patch didn't make it last time.
  174.  
  175. Sat Oct 12 12:04:47 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  176.  
  177.     * tail.c (pipe_lines, pipe_bytes): Initialize `first->next'.
  178.  
  179.     * cmp.c (cmp): Print EOF message to stderr, not stdout, for
  180.     POSIX 1003.2.11.2.
  181.  
  182.     * sort.c (xfwrite): fwrite never returns < 0, so check if
  183.     number written is number we asked to write.
  184.     (fillbuf, main): fread never returns < 0, so check ferror instead.
  185.     From Rainer Orth.
  186.  
  187. Tue Oct  8 18:07:08 1991  Jim Meyering  (meyering at churchy)
  188.  
  189.     * pr.c (print_page): Really fixed `extra newline at EOF' problem.
  190.     * (store_columns): Fixed bug that caused `pr -b -2' to coredump
  191.     on files of certain lengths.
  192.  
  193. Fri Oct  4 22:30:25 1991  Jim Meyering  (meyering at churchy)
  194.  
  195.     * pr.c (print_page): Fixed to not add single spurious newline
  196.     at EOF when using -t.
  197.  
  198. Wed Oct  2 01:02:05 1991  David J. MacKenzie  (djm at apple-gunkies)
  199.  
  200.     * pr.c (print_page): Don't pad the page if -t given.
  201.  
  202.     * csplit.c (load_buffer), sort.c (mergefps): Use bcopy, not memcpy.
  203.  
  204.     * memchr.c (memchr): Fix typo.
  205.  
  206. Thu Sep 26 12:35:00 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  207.  
  208.     * Version 1.1.
  209.  
  210.     * configure, system.h: Include memory.h if it works.
  211.  
  212.     * split.c: Allow `b' unit as well as `k' and `m'.
  213.  
  214.     * head.c, tail.c: Replace -b +blocks option with specifying
  215.     units (b, k, or m) after the number.
  216.     (parse_unit): New function.
  217.  
  218.     * fold.c (main): Check that -w arg is a number.
  219.  
  220.     * cut.c: +delimiter takes an arg.
  221.  
  222. Mon Sep 16 14:52:38 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  223.  
  224.     * pr.c (close_file): Don't close an already closed file.
  225.  
  226. Thu Sep 12 00:14:43 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  227.  
  228.     * memchr.c: New file.
  229.     * configure: Check if it's needed.
  230.  
  231.     * csplit.c, gcsplit.1: New program.
  232.  
  233.     * pr.c (cleanup): Only free buffers if they were allocated.
  234.  
  235.     * sort.c [!USG && !STDC_HEADERS]: Declare memchr.
  236.  
  237. Wed Sep 11 20:54:16 1991  Jim Meyering  (meyering at churchy)
  238.  
  239.     * pr.c: The following 3 bugs appeared (at least) when printing
  240.     a  single file with the options `-3 -f'.
  241.     * (print_white_space): Single spaces were being replaced
  242.     with tabs.
  243.     * (print_page): Some lines were getting too much white space
  244.     at the beginning because spaces_not_printed wasn't being reset
  245.     to 0.
  246.     * (read_line): The single space between a truncated column
  247.     on its left and the column on its right was omitted.  Fixed
  248.     so that previous value of input_position is restored before
  249.     returning FALSE.
  250.  
  251. Sat Sep  7 03:22:18 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  252.  
  253.     * configure: Only remove /etc from PATH when it's not part of
  254.     a larger name.
  255.  
  256. Wed Sep  4 17:09:24 1991  David J. MacKenzie  (djm at apple-gunkies)
  257.  
  258.     * linebuffer.c (readline): Fix incorrect recalculation of `end'.
  259.  
  260.     * head.c, tail.c: Replace `mode' variables and bitmasks with
  261.     separate variables for each option.
  262.  
  263. Mon Sep  2 04:00:37 1991  David J. MacKenzie  (djm at apple-gunkies)
  264.  
  265.     * wc.c: New program.
  266.  
  267. Sun Sep  1 01:18:38 1991  David J. MacKenzie  (djm at apple-gunkies)
  268.  
  269.     * fold.c (fold_file): Read in an int, not a char, for EOF
  270.     comparison. 
  271.  
  272.     * configure: Check whether st_blksize is missing.
  273.  
  274.     * tac.c (save_stdin): Put copy of pipe input in TMPDIR if
  275.     defined, instead of /tmp.
  276.  
  277. Thu Aug 29 14:48:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  278.  
  279.     * xwrite.c [POSIX]: unistd.h might require sys/types.h.
  280.  
  281. Wed Aug 28 11:57:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  282.  
  283.     * paste.c (main): Consider -d "" to be like -d "\0",
  284.     for POSIX (if I read it right).
  285.  
  286.     * sort.c, join.c: New programs.
  287.  
  288.     * cut.c (set_field): Allow blanks as well as commas to
  289.     separate numbers in ranges.
  290.  
  291. Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
  292.  
  293.     * pr.c: Failure to open an input file is no longer a fatal error.
  294.     A message is printed for each failed open.  When printing
  295.     in parallel, each failed open results in one fewer output column.
  296.     Added POSIX -r option to suppress the message.
  297.     * pr.c: Added variables: failed_opens, ignore_failed_opens.
  298.         These changes were based in part on work by David MacKenzie.
  299.  
  300. Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
  301.  
  302.     * pr.c: Complain if user gives both -m and -[0-9]+ options.
  303.  
  304. Wed Aug 21 22:04:57 1991  David J. MacKenzie  (djm at apple-gunkies)
  305.  
  306.     * Version 1.0.
  307.  
  308. Mon Aug 19 00:16:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  309.  
  310.     * expand.c: Rename some variables.
  311.     (expand): Don't access value off end of array.
  312.     * unexpand.c: Rename some variables.
  313.     (unexpand): Don't access value off end of array.
  314.     Instead of copying tabs verbatim and flushing pending spaces
  315.     when one is reached, count them as the proper number of
  316.     pending spaces.  Instead of changing tabs to single spaces if
  317.     the tabstop list is exhausted, print the rest of the line
  318.     unchanged (for POSIX).
  319.  
  320. Sat Aug 17 01:49:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  321.  
  322.     * cut.c (cut_file), paste.c (paste_parallel, paste_serial):
  323.     Clear EOF and error conditions on stdin so it can be reused.
  324.  
  325.     * expand.c, unexpand.c (parse_tabstops): Allow blanks as well
  326.     as commas to separate tabstops, for POSIX.
  327.     * expand.c (expand), unexpand.c (unexpand): Don't line-buffer
  328.     the output; send it directly to stdout.
  329.     * unexpand.c (main): Make -t stupidly imply -a for POSIX.
  330.     (unexpand): If a tab stop list was given and we move past its end,
  331.     copy the rest of the line verbatim.
  332.  
  333.     * split.c (convint): New function to allow 'm' and 'k' after
  334.     byte counts.
  335.     (main): Use it.  Change -c option to -b for POSIX.
  336.  
  337. Fri Aug  9 02:47:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  338.  
  339.     * pr.c: Protect isdigit with isascii, if required.
  340.  
  341. Tue Aug  6 21:42:25 1991  David J. MacKenzie  (djm at wheat-chex)
  342.  
  343.     Most of the following is from Paul Eggert:
  344.     * cat.c (main): If stdin is read, check close at end.
  345.     * cmp.c (main): Check for stdin being closed.
  346.     Check for close errors on stdin and stdout.
  347.     (cmp): Return a value instead of exiting.
  348.     * cut.c (cut_file): New function, from code in main.
  349.     Check for read errors.
  350.     (main): Check for close errors.
  351.     * expand.c, unexpand.c (main): Check for close errors.
  352.     (next_file): Go to next file if one can't be opened.
  353.     Check for close errors.
  354.     * head.c (main), tail.c (main): If stdin was read, check for
  355.     close errors.
  356.     * head.c (head_file), tail.c (tail_file): Check for close errors.
  357.     * paste.c (main, paste_parallel, paste_serial), tac.c (main):
  358.     Check for close errors.  Close stdin if it was read.
  359.     * split.c (main): Check for close errors.
  360.  
  361.     * configure, Makefile.in's: Support +srcdir option.
  362.     Make config.status.  Fix up clean targets.
  363.  
  364. Wed Jul 31 01:32:59 1991  David J. MacKenzie  (djm at hal)
  365.  
  366.     * linebuffer.h (struct linebuffer): Add a field to indicate
  367.     the number of valid chars in the line.
  368.     * linebuffer.c (initbuffer, readline): Fill it in.
  369.     * uniq.c, comm.c: Use it.
  370.  
  371.     * pr.c (main): Check stdin and stdout fclose for errors.
  372.     (init_parameters): If there's no room for header and footer,
  373.     omit them rather than dying (for POSIX).
  374.     (init_header): Take a file descriptor as additional arg.
  375.     (init_fps): Change callers.  Note when stdin is read.
  376.     (open_file): For filename "-" use stdin.
  377.     (close_file): Don't close stdin.  Check close for errors.
  378.     (print_char, char_to_clump): Use isprint instead of explicit
  379.     comparisons.
  380.  
  381.     * memcmp.c: New file (needed for comm).
  382.     * bcopy.c: New file (needed for fold).
  383.     * system.h: Don't define bcopy as memcpy.
  384.     * configure: Check for bcopy and memcmp.
  385.  
  386.     * uniq.c (main): Use "-" instead of NULL to mean stdin or
  387.     stdout.
  388.     (check_file): Use "-" instead of NULL to mean stdin or stdout.
  389.     Check readline return instead of for NUL character to
  390.     detect eof.
  391.     Check fclose for errors.
  392.     (find_field): Use linebuffer length, not NULs, to detect end
  393.     of line.
  394.     (different): New function, replaces compare.  Uses memcmp
  395.     instead of strncmp.
  396.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  397.  
  398.     * comm.c (compare_files): Return an error indication.
  399.     Don't take a filename of NULL to mean stdin.
  400.     Use memcmp instead of strcmp to allow for NULs.
  401.     Check fclose for errors.
  402.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  403.  
  404.     * sum.c (sum_file): Take an arg indicating whether to print
  405.     the filename, and don't take NULL meaning stdin.  Set a flag
  406.     when we read stdin.  Check fclose return for errors.
  407.     (main): If stdin was read, check fclose return for errors.
  408.     Use filename of "-" if no args given.
  409.  
  410. Thu Jul 25 15:17:10 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  411.  
  412.     * fold.c: Rewritten from scratch for POSIX.
  413.  
  414. Wed Jul 24 01:55:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  415.  
  416.     * split.c (line_bytes_split): Use xmalloc instead of alloca.
  417.     * system.h: Don't declare alloca.
  418.  
  419.     * tac.c, tail.c: Use SEEK_ instead of L_ for lseek.
  420.     * system.h: Define SEEK_ macros if not defined.
  421.  
  422.     * pr.c: Rename variable `truncate' to avoid library function conflict.
  423.  
  424. Tue Jul 23 13:21:48 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  425.  
  426.     * linebuffer.c, linebuffer.h: New files.
  427.     * comm.c, uniq.c (initbuffer, readline): Functions
  428.     removed (use versions in linebuffer.c).
  429.  
  430. Mon Jul 22 13:23:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  431.  
  432.     * sum.c (sumfile): Always print 5 digits for second number, too.
  433.     Interpret "-" to mean stdin.
  434.  
  435. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  436.  
  437.     * uniq.c: Use isblank instead of isspace, to support POSIX.2.
  438.     * comm.c, pr.c, uniq.c (concat, fatal, error,
  439.     pfatal_with_name, xmalloc, xrealloc): Functions removed.
  440.  
  441. Sat Jul 13 02:04:53 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  442.  
  443.     * nl.c: Add long-named options.  Doc fixes.
  444.  
  445. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  446.  
  447.     * expand.c, unexpand.c [STDC_HEADERS]: Include stdlib.h.
  448.  
  449.     * xwrite.c [POSIX]: Include unistd.h.
  450.     [STDC_HEADERS]: Don't declare errno.
  451.  
  452. Sun Jun 30 23:35:16 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  453.  
  454.     * uniq.c: Add long-named options.  Remove marginally useful -z
  455.     option (zero padded repeat counts).
  456.  
  457. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  458.  
  459.     * tail.c (tail_file), tac.c (save_stdin, tac_file), split.c
  460.     (cwrite), head.c (head_file), cat.c (main): Check close return
  461.     value for delayed error report due to NFS.
  462.  
  463. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  464.  
  465.     * cat.c: Replace "uchar" with "unsigned char", to avoid
  466.     problems with various systems' typedefs.
  467.  
  468. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  469.  
  470.     * cat.c (cat): Interpret ENOTTY return from FIONREAD ioctl to mean
  471.     operation is unsupported, for HP-UX 7.0.
  472.  
  473. Sun Apr 14 21:49:17 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
  474.  
  475.     * sum.c: Always print five digits for first number.
  476.  
  477. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  478.  
  479.     * cat.c, cmp.c: Don't use fileno(); not needed.
  480.  
  481. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  482.  
  483.     * tac.c, tail.c: Change _POSIX_SOURCE to POSIX.
  484.  
  485. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  486.  
  487.     * cut.c (cut_file_bytes, cut_file_fields): Make inbufp and
  488.     outbufp global.
  489.     (enlarge_line): Adjust inbufp and outbufp.
  490.  
  491. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  492.  
  493.     * cat.c: Declare free returning void, not int, so it
  494.     doesn't bomb on Xenix.
  495.  
  496. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  497.  
  498.     * tac.c: Print error messages before calling cleanup, not after.
  499.  
  500. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  501.  
  502.     * tac.c (cleanup): Return SIGTYPE, not int.
  503.  
  504. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  505.  
  506.     * cut.c (main, usage): Add -b and -n options for POSIX.
  507.     (set_fields): Don't allow SPC or TAB as number separators.
  508.  
  509.     * paste.c (paste_parallel): If open of any file fails, quit
  510.     (for POSIX).
  511.  
  512. Mon Aug  6 22:14:13 1990  David J. MacKenzie  (djm at apple-gunkies)
  513.  
  514.     * pr.c: Add POSIX -F option (same as -f).
  515.  
  516.     * uniq.c (check_file): Allow '-' to mean stdin or stdout.
  517.  
  518. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  519.  
  520.     * head.c, tail.c: Change `chars' to `bytes' globally.
  521.     (main, usage): Use POSIX.2 draft 10 option syntax.
  522.  
  523. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  524.  
  525.     * cat.c (main): Don't delay error messages, so they appear
  526.     where expected.
  527.     (main, simple_cat, cat): Make errors in input files nonfatal.
  528.  
  529. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  530.  
  531.     * cat.c: Remove -c option added for POSIX draft 9, since POSIX
  532.     draft 10 removed it. 
  533.  
  534.     * tac.c (tac_stdin): Use fstat instead of lseek to determine
  535.     whether stdin is seekable, because lseek silently fails on
  536.     some special files, like tty's.
  537.     tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
  538.     don't turn off -f for non-regular files (assume the user knows
  539.     what he's doing; it might work for fifo's and sockets).
  540.  
  541.     * paste.c (main): If no files given, use stdin.
  542.     Don't let collapse_escapes write on string constant (delim default).
  543.     (paste_parallel): Don't close stdin.
  544.  
  545.     * cut.c (main): Use standard input for filename of "-".
  546.  
  547.     * comm.c (compare_files): Allow '-' to mean stdin.
  548.  
  549. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  550.  
  551.     * cut.c (enlarge_line): Take an arg giving the required amount
  552.     of space.  Change callers.
  553.     (main): Don't allow -t'<TAB>' without -f.
  554.     Make `delim' unsigned to fix sign extension problem in comparison.
  555.  
  556. Tue Jul 17 12:36:11 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
  557.  
  558.     * pr.c  Deleted excess whitespace from ends of lines.
  559.         Modified to work with current version of getopt, which
  560.         returns 1 instead of 0 for non-options.
  561.         Reversed the meaning of the -f option, to be compatable
  562.         with real pr.
  563.  
  564. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  565.  
  566.     * cmp.c (main, usage): Rename -L option to -c and don't have
  567.     it imply -l. 
  568.     (printc): Take an arg to specify number of chars to pad to,
  569.     for column alignment.
  570.     (cmp): Respect flag_print_chars in default output format.
  571.     Align columns for cmp -cl.
  572.  
  573. Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
  574.  
  575.     * cmp.c: For +show-chars, have getopt return 'L' so
  576.     `flag_print_chars' gets set.
  577.  
  578. Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
  579.  
  580.     * tac.c (main): Initialize fastmap and translate fields of
  581.     regex before compiling it.
  582.  
  583. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  584.  
  585.     * tac.c: Change +regexp to +regex for consistency with GNU find.
  586.  
  587. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  588.  
  589.     * cat.c (cat): If FIONREAD is available, only use it if it is
  590.     supported by the filesystem that the file is on.
  591.  
  592. Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  593.  
  594.     * cat.c (main): Add a variable to control whether the check
  595.     for input file == output file is made, because no values of
  596.     st_dev and st_ino should be assumed to be available for this
  597.     purpose.  Only do the check for regular files.
  598.  
  599.     * tac.c: Use bcopy instead of memcpy.
  600.  
  601. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  602.  
  603.     * head.c: Use longs instead of ints for file offsets, for 16
  604.     bit machines.
  605.  
  606. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  607.  
  608.     * cmp.c: Change some ints to longs for 16 bit machines.
  609.     (bcmp_cnt): Make char-pointer counting slightly simpler.
  610.  
  611. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  612.  
  613.     * cat.c (main): Allow input file to be output file for devices
  614.     (ttys, etc.).  Check whether input file is output file when
  615.     reading standard input.  Print any error messages for standard
  616.     input. 
  617.  
  618.     * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
  619.     machines as well as 32 bit ones.
  620.     * cmp.c, tail.c: Use longs instead of ints for file offsets. 
  621.  
  622. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  623.  
  624.     * cmp.c: Fix some exit statuses for POSIX.
  625.  
  626. Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
  627.  
  628.     * tac.c: Use regular expressions as the record boundaries.
  629.     Give better error messages.
  630.     Reformat code and make it more readable.
  631.     (main): Use getopt_long to parse options.
  632.     (tac_stdin): Do not make a temporary file if standard input
  633.     is a file.
  634.     (tac_file): New function.
  635.     (tac): Take an open file desc as an arg.
  636.     (output): Rewrite to use its own efficient buffering.
  637.     (xmalloc, xrealloc, xwrite): New functions.
  638.  
  639. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  640.  
  641.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  642.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  643.  
  644. Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  645.  
  646.     * comm.c (main): Pass the list of files to compare_files as a
  647.     char ** instead of a char *.
  648.     (compare_files): Make arg a char **.
  649.  
  650.     * uniq.c: Declare some functions as void.
  651.     Change global vars `countmode' and `mode' from ints to enums.
  652.     (main): Use getopt to parse options and support POSIX options.
  653.     Don't use integer_arg to parse numbers, since `-#' can't be
  654.     parsed that way using getopt.
  655.     (find_field): Use isspace for finding fields boundaries.
  656.  
  657. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  658.  
  659.     * comm.c (main): Call usage if given bad option or wrong
  660.     number of args.  Exit with 0 status normally.
  661.     (usage): New function.
  662.     Declare some other functions as void.
  663.  
  664. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  665.  
  666.     * cmp.c (main, cmp, usage): Replace -q +quick option with -L
  667.     +show-chars option to add ASCII representation of bytes to -l format.
  668.  
  669. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  670.  
  671.     * cmp.c (cmp): Change EOF message for POSIX compatibility.
  672.     For -l format, clear bits > FF.
  673.  
  674. Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  675.  
  676.     * tail.c: Move global `errors' into main instead of having
  677.     nonfatal_perror set it.
  678.     (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
  679.     Return an error status.
  680.     (file_lines, start_chars, start_lines): Reverse the meaning of
  681.     the return value.
  682.     (tail_lines, tail_chars): Account for that reversal.
  683.  
  684. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  685.  
  686.     * head.c: Move global `errors' into main and have the various
  687.     functions return an error status instead of setting it in
  688.     nonfatal_perror. 
  689.  
  690. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  691.  
  692.     * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
  693.       options specified), to compare the two blocks and count
  694.       newlines simultaneously.
  695.     * cmp.c New function: bcmp_cnt.
  696.  
  697.     * cmp.c (main): Test if output is redirected to /dev/null, and
  698.       assume `-s' if this is so.
  699.  
  700. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  701.  
  702.     * cat.c: Change `argbad' from a char to a short, so it will
  703.     work on machines with unsigned chars.
  704.  
  705. Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  706.  
  707.     * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
  708.     Remove unneccessary variable `c1'.  If -l was given, increase
  709.     `char_number' by the number of bytes read, after producing output,
  710.     rather than by the offset of the first differing bytes, before
  711.     producing output.
  712.     Replace if-else-if constructions with case statements for clarity.
  713.     (bcmp2): Rename `n' to `nread'.
  714.  
  715. Wed Dec 20 01:32:06 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  716.  
  717.     * nl.c (proc_text): Use re_search instead of re_match.
  718.  
  719. Tue Dec 19 01:26:34 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  720.  
  721.     * nl.c: Indent.  Un-nest statements.  Use GNU regexp functions
  722.     instead of System V ones.  Move function declarations together.
  723.     (quit): Remove useless function.
  724.     (program_name): New variable for error messages.
  725.     (main): Use perror in error message.
  726.     (xmalloc): New function to replace myalloc.
  727.     (myalloc): Function removed.
  728.     Global: use program_name and xmalloc.
  729.  
  730. Sun Dec 17 00:36:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  731.  
  732.     * uniq.c: Declare some functions.
  733.     (main): Initialize infile and outfile.  Call usage if given
  734.     invalid args.  Normally exit with 0 status instead of garbage.
  735.     (usage): New function to print usage message and exit.
  736.     (check_file): Remove unused variable.
  737.     (readline): Compare against EOF, not < 0.
  738.     (xmalloc, xrealloc): Return char *, not int.
  739.     Ok to return 0 if 0 bytes requested.
  740.     (lb1, lb2): Remove unused global vars.
  741.     (concat): Remove unused function.
  742.  
  743. Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  744.  
  745.     * comm.c: Remove unused global variables lb1, lb2.
  746.     (main): Remove unneeded variable.
  747.     (compare_files): Remove unused arg.
  748.     (readline): un-nest assignment.  Test against EOF instead of < 0.
  749.     (error): Print to stderr, not stdout.
  750.     (xmalloc, xrealloc): Return char * instead of int.
  751.     Returning 0 is ok if 0 bytes requested (ANSI C).
  752.  
  753.  
  754. Local Variables:
  755. mode: indented-text
  756. left-margin: 8
  757. version-control: never
  758. End:
  759.